package com.ruoyi.nysjwh.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.nysjwh.mapper.TbNysjwhYbghMapper;
import com.ruoyi.nysjwh.domain.TbNysjwhYbgh;
import com.ruoyi.nysjwh.service.ITbNysjwhYbghService;

/**
 * 仪表更换Service业务层处理
 * 
 * @author hc
 * @date 2023-11-11
 */
@Service
public class TbNysjwhYbghServiceImpl implements ITbNysjwhYbghService 
{
    @Autowired
    private TbNysjwhYbghMapper tbNysjwhYbghMapper;

    /**
     * 查询仪表更换
     * 
     * @param id 仪表更换主键
     * @return 仪表更换
     */
    @Override
    public TbNysjwhYbgh selectTbNysjwhYbghById(Long id)
    {
        return tbNysjwhYbghMapper.selectTbNysjwhYbghById(id);
    }

    /**
     * 查询仪表更换列表
     * 
     * @param tbNysjwhYbgh 仪表更换
     * @return 仪表更换
     */
    @Override
    public List<TbNysjwhYbgh> selectTbNysjwhYbghList(TbNysjwhYbgh tbNysjwhYbgh)
    {
        return tbNysjwhYbghMapper.selectTbNysjwhYbghList(tbNysjwhYbgh);
    }

    /**
     * 新增仪表更换
     * 
     * @param tbNysjwhYbgh 仪表更换
     * @return 结果
     */
    @Override
    public int insertTbNysjwhYbgh(TbNysjwhYbgh tbNysjwhYbgh)
    {
        return tbNysjwhYbghMapper.insertTbNysjwhYbgh(tbNysjwhYbgh);
    }

    /**
     * 修改仪表更换
     * 
     * @param tbNysjwhYbgh 仪表更换
     * @return 结果
     */
    @Override
    public int updateTbNysjwhYbgh(TbNysjwhYbgh tbNysjwhYbgh)
    {
        return tbNysjwhYbghMapper.updateTbNysjwhYbgh(tbNysjwhYbgh);
    }

    /**
     * 批量删除仪表更换
     * 
     * @param ids 需要删除的仪表更换主键
     * @return 结果
     */
    @Override
    public int deleteTbNysjwhYbghByIds(Long[] ids)
    {
        return tbNysjwhYbghMapper.deleteTbNysjwhYbghByIds(ids);
    }

    /**
     * 删除仪表更换信息
     * 
     * @param id 仪表更换主键
     * @return 结果
     */
    @Override
    public int deleteTbNysjwhYbghById(Long id)
    {
        return tbNysjwhYbghMapper.deleteTbNysjwhYbghById(id);
    }
}
